package com.jk.hearthstone.card.biology.entourage;

import com.jk.hearthstone.card.biology.BaseBiology;
import com.jk.hearthstone.card.biology.hero.BaseHero;
import com.jk.hearthstone.data.Desktop;
import com.jk.hearthstone.data.History;

import static com.jk.hearthstone.enumeration.BattleCryType.BATTEL_CRY_TYPE_WITHTARGET;

public class 叫嚣的中士 extends BaseEntourage {

    public 叫嚣的中士(){
        cost = 1;
        att = 1;
        hp = 1;
        maxHp = 11;
        battleCryType = BATTEL_CRY_TYPE_WITHTARGET;
    }

    @Override
    public boolean battleCry(Desktop desktop, History history, BaseBiology target) {
        //可以不选择目标
        if(target == null){
            return true;
        }
        //不可选择英雄
        if(target instanceof BaseHero){
            return false;
        }
        //不可是敌方随从
        for (BaseEntourage entourage : desktop.enemiesEntourage) {
            if(entourage == target){
                return false;
            }
        }
        target.att += 2;
        return true;
    }
}
